package com.dkm.orproject.dkmoa.dao;

import com.dkm.orproject.dkmoa.domain.OaDimissionFlow;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface OaDimissionFlowMapper {
    int deleteByPrimaryKey(Long pkDimissionId);

    int insert(OaDimissionFlow record);

    int insertSelective(OaDimissionFlow record);

    OaDimissionFlow selectByPrimaryKey(Long pkDimissionId);

    int updateByPrimaryKeySelective(OaDimissionFlow record);

    int updateByPrimaryKey(OaDimissionFlow record);

    List<OaDimissionFlow> findAll(@Param("dimissionFlow") OaDimissionFlow dimissionFlow,@Param("startDate") String startDate,@Param("endDate") String endDate);

    Long rowCount(@Param("dimissionFlow") OaDimissionFlow dimissionFlow,@Param("startDate") String startDate,@Param("endDate") String endDate);

    int deleteAll(List<Long> ids);

    int getDimissionFlow(@Param("pkPersonnelId") Long pkPersonnelId);
}